/* eslint-disable semi */
/* eslint-disable comma-spacing */
// import ethera from "./ethera.pdf"
import * as Yup from "yup";


export const documentData = [
    {
        name:"Consent for TeleHealth Consultation",
        link:"https://www.iitk.ac.in/esc101/share/downloads/javanotes5.pdf"
    },
    {
        name:"Cardit Card Authorization",
        link:"https://docs.google.com/viewer?url=https://www.computer-pdf.com/pdf/0802-python-tutorial.pdf"
    },
    {
        name:"Notice of Privacy Practice",
        link:"https://docs.google.com/viewer?url=https://www.computer-pdf.com/pdf/0802-python-tutorial.pdf"
    },
    {
        name:"Informed Consent for  Psychotherapy",
        link:"https://www.iitk.ac.in/esc101/share/downloads/javanotes5.pdf"
    },
    {
        name:"   Practice Policies",
        link:"https://www.iitk.ac.in/esc101/share/downloads/javanotes5.pdf"
    }
]


export const SUPPORTED_FORMATS = [
    "image/jpg",
    "image/jpeg",
    "image/png",
    "application/pdf",
    "application/msword",
    "application/mp3",
    "audio/x-m4a",
    "text/csv"
  ]

  export const DocumentFileValidation = Yup.object().shape({
    documentFile: Yup.mixed()
      .test("fileSize", "File size is too large!", (value) => {
        if (value) {
          return value.size < 10 * 1024 * 1024;
        }
        return true;
      })
      .test("fileFormat", "File format is not supported!", (value) => {
        if (value) {
        return SUPPORTED_FORMATS.includes(value.type);
        }
        return true;
      })
  });